﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/EHTAdmin.Master" AutoEventWireup="true" CodeBehind="AdminFAQs.aspx.cs" Inherits="EHTWebsiteProject.Administrator.AdminFAQs" %>
<%@ Register src="../Controls/PaggingControl.ascx" tagname="PaggingControl" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MenuModulContent" runat="server">
  <div class="MenuSub-Left" >
        <table>
            <tr>
                <td> <img alt="" src="../images/EHTgiaodien/icon-48-article.png" /></td>
                <td><asp:Label ID="lbFAQs" runat="server" Text="Quản lý FAQs" ></asp:Label></td>
            </tr>
        </table>           
    </div>
    <div class="MenuSub-Right" align="right">
        <table style="height:60px">
            <tr>                                                                       
                <td valign="middle">
                    <div class="add-edit-del">
                         <asp:ImageButton ID="ImgDel" ImageUrl="~/images/EHTgiaodien/icon-32-delete.png" 
                                runat="server" width="32px" height="32px" CssClass="imagboder" 
                                OnClientClick="return confirm('Are you sure you want to delete?');" 
                             onclick="ImgDel_Click" />                                                     
                            <br />
                            <asp:Label ID="lbDel" runat="server" Text="Xóa"></asp:Label>       
                    </div>
                </td>

                <td valign="middle">
                    <div class="add-edit-del">
                         <asp:ImageButton ID="ImgEdit" ImageUrl="~/images/EHTgiaodien/icon-32-edit.png" 
                                runat="server" width="32px" height="32px" CssClass="imagboder" onclick="ImgEdit_Click" 
                                />  <br />                                                                      
                            <asp:Label ID="lbEdit" runat="server" Text="Sửa"></asp:Label> 
                    </div>
                </td>
                <td valign="middle">
                    <div class="add-edit-del">
                        <a href="AdminFAQsUI.aspx">
                            <img alt="" src="../images/EHTgiaodien/icon-32-new.png" width="32px" height="32px" class="imagboder" /><br />
                            <asp:Label ID="lbAddNew" runat="server" Text="Thêm mới"></asp:Label>
                        </a>
                    </div>
                </td>            
                 <td valign="middle">
                    <div class="add-edit-del">
                        <a href="#">
                            <img alt="" src="../images/EHTgiaodien/icon-32-help.png" width="32px" height="32px" class="imagboder" /><br />
                            <asp:Label ID="lbHelp" runat="server" Text="Trợ giúp"></asp:Label>
                        </a>
                    </div>
                </td>                
            </tr>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">                 
<div style="text-align:right; padding-right:10px; width:100%; padding-bottom:10px">
     <asp:DropDownList ID="ddlFAQs" runat="server" 
        onselectedindexchanged="ddlFAQs_SelectedIndexChanged" AutoPostBack="true">
        <asp:ListItem Text="-------------All-------------" Value="-1"></asp:ListItem>
        <asp:ListItem Text="HVORDAN HANDLE" Value="1"></asp:ListItem>
        <asp:ListItem Text="BETALING" Value="2"></asp:ListItem>
        <asp:ListItem Text="FRAKT & LEVERING" Value="3"></asp:ListItem>
        <asp:ListItem Text="SUPPORT" Value="4"></asp:ListItem>
        <asp:ListItem Text="HVA TILBYR VI" Value="5"></asp:ListItem>
        <asp:ListItem Text="MATT HJEM" Value="6"></asp:ListItem>
    </asp:DropDownList>
</div> 
<div style="color:Red; font-size:12px; font-family:Arial">
    <asp:Literal ID="ltrErorr" runat="server"></asp:Literal>
</div>      
<div style="width:100%">
     <asp:Repeater ID="rpFAQs" runat="server">
        <HeaderTemplate>
            <table cellspacing="0" width="100%" cellpadding="0" class="data-table">
                <thead>
                    <tr>
                       <th>
                           <asp:CheckBox ID="ckAll" runat="server" AutoPostBack="true" OnCheckedChanged="CheckAll" />
                       </th>
                        <th class="actions edit">
                            Edit
                        </th>
                                              
                        <th style="width:90%">
                           Tittel
                        </th>
                                          
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                            <asp:CheckBox ID="ckMenu"  runat="server" />
                            <asp:Label ID="lbDelID" runat="server" Visible="false" Text='<%#Eval("ID")%>'></asp:Label>
                        </td>
                <td class="actions edit">
                    <a href='AdminFAQsUI.aspx?ID=<%#Eval("ID")%>'>
                        <img alt="Edit" src="../Styles/Edit.png"></a>
                </td>
                                            
                <td>
                    <%#Eval("TitleFAQs")%>
                </td>               
               
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody> </table>
        </FooterTemplate>
    </asp:Repeater>
</div>   

<div style="padding:5px; text-align:center">
    
    <uc1:PaggingControl ID="PaggingControl1" PageSize="20" runat="server" />
    
</div>
</asp:Content>
